package com.xbx.admin.entity.user.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 角色对象
 *
 * @author 89005691
 * @create 2018-08-30 21:08
 */
@Data
@ApiModel("角色设置权限对象")
public class SettingModuleForm {

    /**
     * 模块id集合
     */
    @ApiModelProperty(value = "模块id集合", example = "1,2", required = true)
    private String moduleIds;

    /**
     * 角色id
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", example = "1", required = true)
    private Long roleId;
}
